<?php

namespace app\admin\Model;

use think\Model;

class ScoreModel extends Model
{
    protected $name = 'score';
    public function Student(){
        return $this->hasOne('StudentModel','id','sid');
    }
    public function Term(){
        return $this->hasOne('TermModel','id','term_id');
    }
    public function Course(){
        return $this->hasOne('CourseModel','id','subject_id');
    }
}